//
//  CAPersonalBusinessViewController.m
//  CleanerAir_Project
//
//  Created by 付亚杰 on 16/6/3.
//  Copyright © 2016年 Beijing Colin El Internet. All rights reserved.
//

#import "CAPersonalBusinessViewController.h"
#import "CAPersonalRegisteredVC.h"
#import "CARegisteredVC.h"

@interface CAPersonalBusinessViewController ()

@property (weak, nonatomic) IBOutlet UIImageView *persionalImage;
@property (weak, nonatomic) IBOutlet UILabel *persionalLabel;


@property (weak, nonatomic) IBOutlet UIImageView *merchantsImage;
@property (weak, nonatomic) IBOutlet UILabel *merchantsLabel;




@end

@implementation CAPersonalBusinessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    [self.persionalImage addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(persional)]];
    
    [self.persionalLabel addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(persional)]];
    
    [self.merchantsImage addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(merchants)]];
    
    [self.merchantsLabel addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(merchants)]];
    
    // Do any additional setup after loading the view from its nib.
}

- (void)popNav{
    [self.navigationController popViewControllerAnimated:YES];
}

#pragma mark -- 个人注册

- (void)persional{
    
    CAPersonalRegisteredVC *persionalVC = [[CAPersonalRegisteredVC alloc] init];
    
    persionalVC.verificationCodeType = REGISTERED;
    
    persionalVC.registeredVCBlock = ^{
      
        [self.navigationController popToRootViewControllerAnimated:YES];
    };
    
    self.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:persionalVC animated:YES];
    
}


#pragma mark -- 商家注册

- (void)merchants{
    
    CARegisteredVC *registerVC = [[CARegisteredVC alloc] init];
    self.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:registerVC animated:YES];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
